﻿<%@ Page Language="C#" MasterPageFile="~/common.master" AutoEventWireup="true" CodeFile="NewsManagement.aspx.cs" Inherits="page_NewsManagement" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        CellPadding="4" DataKeyNames="Id" DataSourceID="dataSource"
        ForeColor="#333333" GridLines="None" Height="164px" OnPageIndexChanged="GridView1_PageIndexChanged"
        PageSize="5" Width="544px">
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="~/page/NewsShow.aspx？id={0}"
                DataTextField="Title" HeaderText="标题" NavigateUrl="~/page/NewsShow.aspx" />
        </Columns>
        <RowStyle BackColor="#EFF3FB" />
        <EditRowStyle BackColor="#2461BF" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlNewsManagementDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:TarreOADBConnectionString %>"
        SelectCommand="SELECT [Title], [Id], [IssueTime], [State], [SectionId], [IssueUser] FROM [News]">
    </asp:SqlDataSource>
</asp:Content>

